package com.qfedu.edu.messagecenterserver.service.impl;

import com.qfedu.edu.messagecenterserver.mapper.DeviceTopicMapper;
import com.qfedu.edu.messagecenterserver.service.DeviceTopicService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qfedu.edu.pojo.DeviceTopic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * Topic主题表 服务实现类
 * </p>
 *
 * @author xiaobobo
 * @since 2024-09-30
 */
@Service
public class DeviceTopicServiceImpl extends ServiceImpl<DeviceTopicMapper, DeviceTopic> implements DeviceTopicService {

    @Autowired
    private DeviceTopicMapper deviceTopicMapper;

    @Override
    public List<DeviceTopic> getAllDeviceTopics() {
        return deviceTopicMapper.selectList(null);
    }
}
